
REPOS = basic 

mdv_DISTROS = cooker 2008.1
plf_DISTROS = cooker 2008.1

mdv_ARCHS = i586 x86_64
plf_ARCHS = i586 x86_64

mdv.%.list:
	wget -O $@ http://urpmi.mandriva.ru/lists/ru/basic.$*.list

plf.%.list:
	wget -O $@ http://urpmi.mandriva.ru/lists/ru/$*.list

update: clean lists
	date -uR > timestamp

lists:	$(foreach repo,$(REPOS),$(foreach arch,$($(repo)_ARCHS),$(patsubst %,$(repo).%.$(arch).list,$($(repo)_DISTROS))))

clean:
	rm -f *.list
